<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>充值记录管理</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/sys/charge/chargeRecord/">充值记录列表</a></li>
		<shiro:hasPermission name="sys:charge:chargeRecord:edit"><li><a href="${ctx}/sys/charge/chargeRecord/form">充值记录添加</a></li></shiro:hasPermission>
	</ul>
	<form:form id="searchForm" modelAttribute="chargeRecord" action="${ctx}/sys/charge/chargeRecord/" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<ul class="ul-form" style="height: 100px">
			<li><label>充值金额：</label>
				<form:input path="amount"  id="amount" htmlEscape="false" class="input-medium"/>
			</li>
			<li><label>流水号：</label>
				<form:input path="orders" htmlEscape="false" maxlength="64" class="input-medium"/>
			</li>
			<li><label>状态：</label>
				<form:select path="recordFlag" id="recordFlag" class="input-medium">
					<%--<form:option value="" label=""/>--%>
					<form:options items="${fns:getDictList('record_flag')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
				</form:select>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-success" type="submit" value="查询"/></li>
			<%--<li class="clearfix"></li>--%>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed">
		<thead>
			<tr>
				<th>充值用户</th>
			    <th>充值方式</th>
			    <th>充值金额</th>
				<th>修改时间</th>
				<th>备注</th>
				<shiro:hasPermission name="sys:charge:chargeRecord:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="chargrMemberVo">
			<tr>
                <td><a href="${ctx}/sys/charge/chargeRecord/form?id=${chargrMemberVo.id}">
                        ${chargrMemberVo.memberName}
                </a></td>
				<td>
					${"wx".equals(chargrMemberVo.accountId) ? "微信支付" : "支付宝支付"}
				</td>
				<td>
                        <fmt:formatNumber value="${chargrMemberVo.amount}" pattern="￥#,###.##" type="number"/>
                </td>
				<td>
					<fmt:formatDate value="${chargrMemberVo.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>
				<shiro:hasPermission name="sys:charge:chargeRecord:edit"><td>
    				<a href="${ctx}/sys/charge/chargeRecord/form?id=${chargrMemberVo.id}">修改</a>
					<a href="${ctx}/sys/charge/chargeRecord/delete?id=${chargrMemberVo.id}" onclick="return confirmx('确认要删除该充值记录吗？', this.href)">删除</a>
				</td></shiro:hasPermission>
				<td>
						${chargeMemberVo.remarks}
				</td>

			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>